﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using MediaGarden.Pipeline;
using MediaGarden.Models;

namespace MediaGarden.Images.Viewers
{
    /// <summary>
    /// Default HTML image viewer renders img tag
    /// </summary>
    public class HtmlImageViewer : IMediaViewer
    {
        public string ViewerName
        {
            get { return "HtmlImage"; }
        }

        public string ViewerDescription
        {
            get { return "Default HTML image display"; }
        }

        public IEnumerable<string> SupportedMediaFormats()
        {
            yield return "Jpeg";
            yield return "Png";
            yield return "Gif";
        }

        public int ViewerPriority(MediaViewerContext context)
        {
            return 10;
        }
    }
}